<?php include('includes/mysqli_connect.php'); ?>
<?php include('includes/function.php'); ?>
<?php include('includes/header.php'); ?>
<?php include('includes/slide-a.php'); ?>
    <div id="content">   
   <!--   <?php
        if(isset($_GET['cid']) && filter_var($_GET['cid'],FILTER_VALIDATE_INT,array('min_range' =>1))){
            $cid=$_GET['cid'];
            $q="Select p.page_name,p.page_id, LEFT(p.content,400) as content,";
            $q.=" DATE_FORMAT(p.post_on, '%b %d, %Y') AS date, ";
            $q.=" CONCAT_WS(' ',u.first_name,u.last_name) AS name ,u.user_id";
            $q.=" FROM pages AS p ";
            $q.=" INNER JOIN users as u ";
            $q.=" USING (user_id) ";
            $q.=" where p.cat_id ={$cid}";
            $q.=" ORDER BY date ASC LIMIT 0,10";
            $r=mysqli_query($dbc,$q);
            confirm_query($r,$q);
            if(mysqli_num_rows($r)>0)
            {
                while($pages = mysqli_fetch_array($r,MYSQLI_ASSOC))
                {
                    echo "<div class='post'>
                            <h2><a href='single.php?pid={$pages['page_id']}'>{$pages['page_name']}</a></h2>
                            <p>".the_excerpt($pages['content'])."...<a href='single.php?pid={$pages['page_id']}'>Read more </a></p>
                            <p class='meta'><strong>Posted by : </strong> {$pages['name']} | <strong>On :</strong> {$pages['date']}</p>                                                                                       
                    </div>
                    ";
                }
            } else {
                echo "<p>There are no post in this category</p>";
            }
            
            
        }
     ?>

     -->
        <div class="area">
            <h2>Click Here !</h2>
            <h2>Click Here !!</h2>
            <h2>Click Here !!</h2>
        </div>

     <script lang ="javascript">
       (function(){
         $('.area h2').on('click', function() {
             $(this).clone(true).appendTo('.area');
        });
       })();
     </script>
    
    
    </div><!--end content-->
<?php include('includes/slide-b.php'); ?>
<?php include('includes/footer.php'); ?>
    
    